
public class PromotionBLService_Driver {
public void drive(PromotionBLService_Stub promotionBLService){
	ResultMessage result =promotionBLService.setPointsPropotion(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.addEquivalentCoupons(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.removeEquivalentCoupons(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.setEquivalentCouponsPropotion(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.addDiscountCoupons(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.removeDiscountCoupons(1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	System.out.println(promotionBLService.getCustomerName("01"));
	result= promotionBLService.giveEquivalentCoupons("01", new EquivalentCouponsPO(), 1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
	
	result= promotionBLService.giveDiscountCoupons("02",new  DiscountCouponsPO(), 1);
	if (result==ResultMessage.succeed)
		System.out.println("Succeed!");
	else System.out.println("Fail!");
}

/*public static void main(String[] args){
	PromotionBLService_Stub promotionBLService=new PromotionBLService_Stub();
	PromotionBLService_Driver driver=new PromotionBLService_Driver();
	driver.drive(promotionBLService);
}*/
}
